import { Router } from "vue-router";

export function createRouterGuards(router: Router) {
	// 全局路由前置守卫
	router.beforeEach((to, from, next) => {
		next();
	});

	router.afterEach(() => {});

	router.onError((error) => {
		console.log(error, "路由错误");
	});
}
